import java.io.File;
import java.io.IOException;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.advanced.*;

public class AudioHandler {

	static void enemyHit() throws IOException, JavaLayerException
	{
		File music = new File("Audio/AudioFiles/enemyHit.mp3");
		jlap.playMp3(music, null);
	}
	
	static void shotFired() throws IOException, JavaLayerException
	{
		File music = new File("Audio/AudioFiles/shotFired.mp3");
		jlap.playMp3(music, null);
	}
	
	static void enemyKilled() throws IOException, JavaLayerException
	{
		File music = new File("Audio/AudioFiles/enemyKilled.mp3");
		jlap.playMp3(music, null);
	}
	
	static void towerBuilt() throws IOException, JavaLayerException
	{
		File music = new File("Audio/AudioFiles/towerBuilt.mp3");
		jlap.playMp3(music, null);
	}
	
	static void towerSold() throws IOException, JavaLayerException
	{
		File music = new File("Audio/AudioFiles/towerSold.mp3");
		jlap.playMp3(music, null);
	}
}
